home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / text / hyper / ADtoHT2_1.lha / Source.lha / MyLib.lha / startup / exit.doc < prev    next >
Encoding:
Text File  |  1995-04-10  |  638 b   |  27 lines

  1. MyLib.lib/exit                                                  MyLib.lib/exit
  2.  
  3.     NAME
  4.     exit - perform normal program termination
  5.  
  6.     SYNOPSIS
  7.     #include <stdlib.h>
  8.  
  9.     void exit(int ReturnCode);
  10.  
  11.     FUNCTION
  12.     exit() terminates a program. The following actions are performed:
  13.       - streams opened via fopen() are closed
  14.       - memory allocated via malloc() is freed
  15.       - dos.library and utility.library are closed
  16.       - the workbench message is replied, if necessary
  17.  
  18.     NOTE
  19.     EXIT_SUCCESS and EXIT_FAILURE are defined as RETURN_OK and
  20.     RETURN_FAIL, resp.
  21.  
  22.     SEE ALSO
  23.     AmigaMain
  24.  
  25.     STANDARDS COMPLIANCE
  26.     ANSI C3.159-1989, ISO 9899-1990
  27.